#ifndef DIGIT_TUBE_H
#define DIGIT_TUBE_H

#include "User_Def.h"

#define Digit_Tube0_En GPIO_PIN_5 // PB
#define Digit_Tube1_En GPIO_PIN_1 // PF
#define Digit_Tube2_En GPIO_PIN_0 // PF
#define Digit_Tube3_En GPIO_PIN_7 // PB

#define Digit_TubeA_Pin GPIO_PIN_7
#define Digit_TubeB_Pin GPIO_PIN_6
#define Digit_TubeC_Pin GPIO_PIN_4
#define Digit_TubeD_Pin GPIO_PIN_2
#define Digit_TubeE_Pin GPIO_PIN_1
#define Digit_TubeF_Pin GPIO_PIN_0
#define Digit_TubeG_Pin GPIO_PIN_5
#define Digit_TubeDP_Pin GPIO_PIN_3

void Digit_Tube_Init(void);
void Digit_Tube_Close(void);
void Digit_Tube_Display(u16 tube, u8 num);
void Digit_Tube_Display_DP(u16 tube);
void Digit_Tube_All_Display(u8 num);

#endif /* DIGIT_TUBE_H */